package org.example.service;

import org.example.pojo.Answer;
import org.example.pojo.Question;
import org.example.util.AjaxResult;

public interface MainServiceI {
    public AjaxResult searchAll();

    public AjaxResult getBy( long id);

    public AjaxResult addQuestion(Question question);

    public AjaxResult addAnswer(Answer answer);

    public AjaxResult getAnswer(long id);
}
